﻿using System.Web.Mvc;

namespace BBICMS.WebUI.Areas.Admin
{
    public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_default001",
                "bbi-Admin/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional },
                namespaces: new string[] { "BBICMS.WebUI.Areas.Admin.Controllers" }
            );

            context.MapRoute(
             "Admin_index001",
             "bbi-Admin",
             new { controller = "Home", action = "Index", id = UrlParameter.Optional },
              namespaces: new string[] { "BBICMS.WebUI.Areas.Admin.Controllers" }

         );

            //context.MapRoute(
            //    "bbi_Admin_default",
            //    "bbi-Admin/{controller}/{action}/{id}",
            //    new { action = "Index", id = UrlParameter.Optional }
            //);

            //context.MapRoute(
            //    "bbi_Admin_index",
            //    "bbi-Admin", new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            //);
        }
    }
}
